package com.mls.fivedistrict.dao;

import com.mls.fivedistrict.pojo.NewsComment;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 新闻评论 Mapper 接口
 * </p>
 *
 * @author Five Team
 * @since 2018-05-15
 */
public interface NewsCommentMapper extends BaseMapper<NewsComment> {

    List<NewsComment> selectChildrenComment(@Param("id") Long id);

    NewsComment selectParent(@Param("parentId") Long parentId);


    boolean addLikeTimes(@Param("id") long id);

    boolean cutLikeTime(@Param("id") long id);

    boolean addReplyTimes(@Param("id") long id);

    boolean cutReplyTimes(@Param("id") long id);
}
